﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClassCompetence.aspx.cs" Inherits="DreamBox.Admin.Posts.ClassCompetence" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>分类权限列表设置</title>
      <script type="text/javascript" src="/tools/js/jquery-1.9.1.min.js"></script>


 <link href="/style/default/css/style.css" rel="stylesheet" type="text/css" />

    <link href="/style/default/css/tb.css" rel="stylesheet" />



     <style type="text/css">
        .MSelectItem{
	        background:#79c7f3;
	        background-color:#79c7f3;
        }
        .MItem
        {
            background:White;
	        background-color:White;
        }
    </style>
    <script type="text/javascript">
        //全选/反选
        function Check(che) {
            var gv = document.getElementById("tablelist");
            for (var i = 2; i < gv.rows.length; i++) {
                gv.rows[i].cells[0].getElementsByTagName("input")[0].checked = che.checked;
            }
        }
        //颜色选项
        function SelectItem(item) {
            $("#" + item.id).attr("class", "MSelectItem");
        }
        function UnSelectItem(item) {
            $("#" + item.id).attr("class", "");
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
        <table cellpadding="0" cellspacing="0" border="0" class="table bordered" id="tablelist">
			<tr>
               <th>角色名称</th>
               <th>是否允许发布</th>
                <th>是否允许回复</th>
               <th>是否允许阅读</th>
			</tr>

             <asp:Repeater ID="RepeaterList" runat="server">
            <ItemTemplate>
			<tr onmouseover="SelectItem(this)"  onmouseout="UnSelectItem(this)" id="Item<%#Eval("GID") %>" >
				
                 <td>
                    <%#Eval("GroupName") %>
                    <asp:HiddenField ID="hide_GID" runat="server" Value='<%#Eval("GID") %>' />
                    <asp:HiddenField ID="hide_ID" runat="server" />
                </td>
                <td>
                   <asp:CheckBox ID="cbox_IsPosts" runat="server" />
                </td>
                 <td>
                   <asp:CheckBox ID="cbox_IsReply" runat="server" />
                </td>
                <td>
                    <asp:CheckBox ID="cbox_IsRead" runat="server" />
                </td>
			</tr>
            
            </ItemTemplate>
            </asp:Repeater>
            <tr>
			<td colspan="5">
                <asp:DropDownList ID="drop_PostsClass" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drop_PostsClass_SelectedIndexChanged"></asp:DropDownList>&nbsp;&nbsp;  <asp:Button ID="btn_Post" runat="server" Text="保  存" CssClass="btn" OnClick="btn_Post_Click" />
            </td>
			</tr>
        </table>
    </form>
</body>
</html>
